import smtplib
from email.mime.text import MIMEText
from email.header import Header
message =MIMEText('Python邮件发送测试\n','plain','utf8')
message['From']=Header('root@localhost','utf8')
message['To']=Header('alice@localhost','utf8')
message['Subject']=Header('mail test','utf8')

sender='root@redhat.com'
rece